package com.dt.app.modules.product.entities;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 鸿源塔基
 * @since 2024-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product_gg")
@ApiModel(value="ProductGg对象", description="")
public class ProductGg implements Serializable {

    private static final long serialVersionUID=20240311231002941L;

    @ApiModelProperty(value = "产品规格定义")
    @TableId(value = "product_gg_id", type = IdType.AUTO)
    private Integer productGgId;

    @ApiModelProperty(value = "公司")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "栏目")
    @TableField("category_id")
    private Integer categoryId;

    @ApiModelProperty(value = "产品")
    @TableField("product_id")
    private Integer productId;

    @ApiModelProperty(value = "编码")
    @TableField("gg_no")
    private String ggNo;

    @ApiModelProperty(value = "规格名称")
    @TableField("gg_name")
    private String ggName;

    @ApiModelProperty(value = "值 , 号隔开")
    @TableField("gg_value")
    private String ggValue;

    @ApiModelProperty(value = "int  string float")
    @TableField("gg_value_type")
    private String ggValueType;

    @ApiModelProperty(value = "组合方式 1单选框  2复选框 3下拉框 4输入框 7自定义-区间输入框")
    @TableField("gg_type")
    private Integer ggType;

    @ApiModelProperty(value = "是否可以自定义输入")
    @TableField("gg_type_udo")
    private Integer ggTypeUdo;

    @ApiModelProperty(value = "降序 组合优先级 级别越高值越大")
    @TableField("gg_level")
    private Integer ggLevel;

    @ApiModelProperty(value = "对外说明")
    @TableField("gg_msg")
    private String ggMsg;

    @ApiModelProperty(value = "内部说明")
    @TableField("gg_msg_out")
    private String ggMsgOut;

    @ApiModelProperty(value = "价格公式 J+  C=*  其它=线下公式编码")
    @TableField("gs_type_name")
    private String gsTypeName;

    @ApiModelProperty(value = "公式叠加值")
    @TableField("gs_type_value")
    private BigDecimal gsTypeValue;

    @ApiModelProperty(value = "0 1必填")
    @TableField("is_need")
    private Integer isNeed;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
